<div class="about4">
   <div class="toop">
        <div class="leixing">物流类型：{{array_get($express, 'type_name')}}</div>
        <div class="gsname">物流公司：{{array_get($express, 'express_company')}}</div>
        <div class="dhnum">物流单号：{{array_get($express, 'waybill_number')}}</div>
    </div>
    <div class="about4_main">
        <div class="line"></div>
        <ul>
            @if(($result = array_get($express, 'result')) && $data = json_decode($result, 1))
                @foreach($data as $item)
                <li>
                    <div class="datee">
                        <div class="left">
                            <span>{{$item['time']}}</span>
                        </div>
                        <div class="right">
                            <div>{{$item['context']}}</div>
                        </div>
                    </div>
                </li>
                @endforeach
                <li>
                    <div class="datee">
                        <div class="left">
                            <span>{{$express['created_at']}}</span>
                        </div>
                        <div class="right">
                            <div>卖家发货</div>
                        </div>
                    </div>
                </li>
            @else
                <li>
                    <div class="datee">
                        <div class="left">
                            <span></span>
                        </div>
                        <div class="right">
                            <div>暂无物流信息</div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="datee">
                        <div class="left">
                            <span>{{$express['created_at']}}</span>
                        </div>
                        <div class="right">
                            <div>卖家发货</div>
                        </div>
                    </div>
                </li>
            @endif
        </ul>
    </div>
    <div class="sub close_box">确认</div>
</div>

<script>

</script>
<script type="text/javascript">
    $(document).ready(function(){

    $('.close_box').click(function(){
        $('.about4').remove();
        $('.bg_h').hide();
    });
    // $(".about4").height($(".about4_main ul").height() + 160);
    $(document).on("click",".ckwl",function(){
        var h = $(".about4_main ul li:first-child").height()/2;
        // <!--第一个li高度的一半-->
        var h1 = $(".about4_main ul li:last-child").height()/2;
        // <!--最后一个li高度的一半-->
        $(".line").css("top",h);
        $(".line").height($(".about4_main").height()-h1-h);
       // $(".about4").height($(".about4_main ul").height() +160 );
        $(".about4").show(0,function(){
            $(".about4").height($(".about4_main ul").height()+260 +"px");
            });
    })
    $(document).on("click",".sub",function(){
            $(".about4").hide(100);
          })
});
</script>